export const lineChartOption = {
    color: "#1dc9e2",
    title: {
        text: "本周异常数折线",
        left: "center",
    },
    grid: {
        //整个视图的位置
        top: 40,
        bottom: 50,
        right: 50,
        left: 40
    },
    tooltip: {
        trigger: "axis",
    },
    xAxis: {
        name: "日期",
        type: "category",
        data: [],
    },
    yAxis: {
        name: "次数",
        type: "value",
    },
    series: [
        {
            data: [],
            type: "line",
        },
    ]
}
export const pieChartoption = {
    color: ["#0066ff", "#EE6666", "#05c091", "#fee082", "#6fb6f5"],
    title: {
        text: "本周异常占比",
        left: "center",
    },
    tooltip: {
        trigger: "item",
    },
    legend: {
        orient: "vertical",
        left: "left",
        top: "center"
    },
    series: [
        {
            name: "异常类型",
            type: "pie",
            radius: "50%",
            center: ['60%', '55%'],
            data: [],
            emphasis: {
                itemStyle: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: "rgba(0, 0, 0, 0.5)",
                },
            },
        },
    ],
}